package org.xq.softcup.mq.admin.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.xq.softcup.mq.admin.model.RegData;

import java.util.List;

/**
 * 消息数据持久层
 * @author admin
 */
@Mapper
public interface IRegDataDao {


    public int refresh(@Param("regData") RegData regData);

    public int add(@Param("regData") RegData regData);


    public List<RegData> findData(@Param("key") String key);

    public int cleanData(@Param("timeout") int timeout);

    public int deleteDataValue(@Param("key") String key,
                               @Param("value") String value);

    public int count();

}
